<?php
/**
 * Created by PhpStorm.
 * User: liubao
 * Date: 19-3-24
 * Time: 上午2:48
 */

namespace App\Controller;


use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;


class IndexController extends AbstractController
{
    /**
     * @Route("/index/{page}", name="index", requirements={"page"="\d+"})
     */
    public function index($page)
    {
        echo 133;die;
        // ...
    }

    /**
     * @Route("/index/{slug}", name="index_show")
     */
    public function show($slug)
    {
        echo 222;die;
        echo 1212;
        // ...
    }
}